﻿namespace BlogSystem.Data.Repository;

public interface IBaseRepository<TEntity> where TEntity : class,new()
{
     IQueryable<TEntity> GetAllByPage();
     
     Task<TEntity> GetById(int id);
    
    Task<bool> Add(TEntity entity);
    
    Task<bool> Update(TEntity entity);
    
   // Task<bool> Delete(TEntity entity);
    
}